package demo3;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 刘远望
 * Date: 2025-03-17
 * Time: 21:45
 */
public class Test {
    public static void main(String[] args) {
        Computer computer = new Computer();
        computer.open();
        computer.useUsbDevice(new KeyBoard());
        computer.useUsbDevice(new Mouse());
        computer.close();
    }
}
